package com.lys.emsystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Builder;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author liyansheng
 * @since 2022-04-26
 */
@Getter
@Setter
@Data
@TableName("tb_student")
public class Student implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 学生id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 学生学号
     */
    private String studentAccount;

    /**
     * 姓名
     */
    private String name;

    /**
     * 性别（男：1，女：0）
     */
    private Integer sex;

    /**
     * 名族
     */

    private String nation;

    /**
     * 身份证
     */
    private String idCard;

    /**
     * 手机号
     */
    private String phone;

    /**
     * QQ
     */
    private String qq;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 家庭住址
     */
    private String homeAddress;

    /**
     * 政治面貌
     */
    private String political;

    /**
     * 毕业时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd")
    private LocalDate graduationTime;

    /**
     * 学历
     */
    private String degree;

    /**
     * 所属班级id
     */
    private Integer classId;

    /**
     * 就业状态
     */
    private Boolean empStatus;

    private String password;

    private Integer role_id;

    /**
     * 头像
     */
    private String avatar;

    @TableField(exist = false)
    private String classNo;

    @TableField(exist = false)
    private String major;

    @TableField(exist = false)
    private String college;

    @TableField(exist = false)
    private String school;





}
